Repository navigation
Pin non-string opt-out values and the 255-character install ID - #40
Merged
Merged
Conversation
An opt-out variable that is not a string (a number, boolean, array or object from untyped code) opts nothing out and leaves the program's own setting in charge. An install-ID line of exactly 255 characters is read as the ID and the file is left as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (head of
Judgment note: Local anchor UNVERIFIED (no This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stage B (unit-test expansion) cycle: two branches of the client that no test exercised are now pinned to their current behavior. No production code is changed.
environmentOptsOutwith non-string values. An environment from untyped code may carry1,true,null, an array, or an object whosetoString()gives"off".matches()accepts only strings, so none of these opt out, and the program's own setting stays in charge (disabledReasonisnull). This matches the documented rule that only the listed string values opt out.installIdFromFileat the 255-character limit. The existing test covers a 256-character line being rejected. The new test checks that a line of exactly 255 characters, padded with spaces, is returned trimmed and that the file is not rewritten.A third candidate,
report()with a non-string name, turned out to be covered already bylogs nothing for a report that was never going to be sent, so it was dropped.Test plan
testjob green on the PR head (npm ci,npm run typecheck,npm test), with the executed-test count two higher than onmainnodeis absent andnpmresolves to a Windows install, so CI on the head SHA is the gate.Not picked this cycle
User-Agentheader insend(). That is wire format, so it is held for the owner and must be coordinated with trace-client-python and trace-client-java.enabledvalues count as an opt-out, and the resultingdisabledReason, is cross-client behavior. The owner's decision is needed.Cross-client parity and changelog
CHANGELOG.md: no entry. The change is test-only, with nothing user-visible.No tracking issue: these gaps were found during triage.
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson